---
title: How to set custom location of node_modules path in yarn
date: 2019-03-10 17:03:58
categories: [cli]
tags: [yarn, javascript, nodejs]
authors: sedlav
---

By default yarn installs packages into a “node_modules” directory in the root of the project. Sometimes you might want to install packages to a different directory - we needed to do this for one of our projects and actually a tough time finding documentation on how to do that, so we decided to write this to share what we learned.

[Link](https://www.caxy.com/blog/how-set-custom-location-nodemodules-path-yarn)
